<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/framework/web/common.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>旅行社</title>
<script>
	function deleteAgency(){
		var uid = getSigleCheckValue();
		//alert(uid);
		window.location.href = getContextPath()+"/deleteTravelAgency.action?travelAgency.id="+uid;
	}
</script>
</head>
<body>
	<div id="toolbar">
		<table>
			<tr>
				<td><img src="<%=request.getContextPath()%>/framework/images/button/delete.png"/></td>
				<td><a href="#" onclick="deleteAgency()">删除旅行社</a></td>
			</tr>
		</table>
	</div>
	<table class="business">
		<thead>
		  <tr>
		    <th colspan="5" align="left"><span>旅行社列表</span></th>
		  </tr>
		</thead>
		<tbody>
		  <tr>
		  	<td>&nbsp;</td>
		    <td>名称</td>
		    <td>组织机构代码</td>
		    <td>地址</td>
		    <td>负责人</td>
		  </tr>
		  <s:iterator value="travelAgencys">
		  <tr>
		  	<td><input type="checkbox" onclick="singleCheck(this)" value="<s:property value="id"/>"></td>
			<td><s:property value="agencyName"></s:property></td>
		    <td><s:property value="agencyCode"></s:property></td>
		    <td><s:property value="agencyAddress"></s:property></td>
		    <td><s:property value="agencyLeader"></s:property></td>
		  </tr>
		  </s:iterator>
		 </tbody>
		 <tfoot>
		 	<tr>
				<td colspan="5">
				<s:set name="pageUrl">getTravelAgencyPagesAdmin.action</s:set>
				<s:include value="/framework/web/Page.jsp">
				</s:include>
				</td>
			</tr>
			</tfoot>
	</table>
</body>
</html>